package com.example.file.model;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 用户登录对象
 *
 * @author ruoyi
 */
@Data
public class LoginBody {
    /**
     * 用户名
     */
    @NotBlank(message = "用户名为空")
    @Length(min = 5, max = 20, message = "用户名不在范围内（5~20）")
    private String username;

    /**
     * 用户密码
     */
    @NotBlank(message = "密码为空")
    @Length(min = 5, max = 20, message = "密码不在范围内（5~20）")
    private String password;

}
